package com.ruoyi.comprehensive.service;

import java.util.List;
import com.ruoyi.comprehensive.domain.PetitionLetter;
import com.ruoyi.comprehensive.domain.PetitionLetterProcess;

/**
 * 网上信访Service接口
 * 
 * @author Allen
 * @date 2021-08-31
 */
public interface IPetitionLetterService 
{
    /**
     * 查询网上信访
     * 
     * @param id 网上信访主键
     * @return 网上信访
     */
    public PetitionLetter selectPetitionLetterById(Long id);

    /**
     * 查询网上信访列表
     * 
     * @param petitionLetter 网上信访
     * @return 网上信访集合
     */
    public List<PetitionLetter> selectPetitionLetterList(PetitionLetter petitionLetter);

    /**
     * 新增网上信访
     * 
     * @param petitionLetter 网上信访
     * @return 结果
     */
    public int insertPetitionLetter(PetitionLetter petitionLetter);

    /**
     * 修改网上信访
     * 
     * @param petitionLetter 网上信访
     * @return 结果
     */
    public int updatePetitionLetter(PetitionLetter petitionLetter);

    /**
     * 批量删除网上信访
     * 
     * @param ids 需要删除的网上信访主键集合
     * @return 结果
     */
    public int deletePetitionLetterByIds(Long[] ids);

    /**
     * 删除网上信访信息
     * 
     * @param id 网上信访主键
     * @return 结果
     */
    public int deletePetitionLetterById(Long id);

    int replay(PetitionLetterProcess petitionLetterProcess);

    int endPetitionLetter(Long id);
}
